﻿
using System.Collections.Generic;

namespace Assets.Scripts.Data
{
    public static class Configs
    {
        //pool
        public const int ShrinkDepth = 3;
        public const int DefaultDepth = -1;

        //Char
        public const string Wildcard = "*";
        public const string Space = " ";
        public const string Colon = ":";
        //frame rate
        public const int FrameRate = 30;
        public const int AnimationInterval = 15;
        //path
        public const string PathConact = "/";
        public const string ResourcePath = "Resources/";
        public const string AssetsPath = "Assets/";
        //prefabs
        public const string UiPrefabsPath = "Prefabs/UIPrefabs";
        public const string EntityPrefabsPath = "Prefabs/EntityPrefabs";
        public const string PrefabFormat = ".prefab";
        //animation
        public const string ControllersPath = "Animations/Controllers/";
        public const string ClipsPath = "Animations/Clips/";
        public const string ClipFormat = ".anim";
        public const string ControllerFormat = ".controller";
        //sprites
        public const string EntitiesSpritesPath = "Sprites/Entities";
        public const string ImageFormat = ".png";
        //titles
        public const string PBricksPath = "Tile Assets/PBricks";
        public const string PebblesPath = "Tile Assets/Pebbles";
        public const string ClaiesPath = "Tile Assets/Claies";
        public const string ForsetPath = "Tile Assets/Forest";
        public const string GrayPath = "Tile Assets/Gray";
        public const string SeaPath = "Tile Assets/Sea";
        public const string StairUpPath = "Tile Assets/StairUp";
        public const string StairDownPath = "Tile Assets/StairDown";

        public enum UiPrefabsNames
        {
            DeathScreen,
            NewHeroScreen,
            WelcomeScreen,
            PlayGameScreen,
        };
        //screen
        public static Dictionary<string, string> PlayGameScreen = new Dictionary<string, string>
        {
            {"Name","Top/Name/Panel/Text" },
            {"HealthValue","Top/Health/Panel/Value" },
            //底部属性栏
            {"Property","Bottom/Property" },
            {"Parent","Bottom/Property/Parent" },
            {"Backgrpund","Background" },
            {"Title","Background/Title" },
            {"Value","Background/Value" },
        };

        public static Dictionary<string, int> AnimationFsm = new Dictionary<string, int>
        {
            {"Idle"  ,2},
            {"Attack",1},
            {"Hit"   ,1},
            {"Dead"  ,1},
        };

        public enum Fsm
        {
            Idle,
            Attack,
            Hit,
            Dead,
        }

        public enum Hero
        {
            A,
            B,
            C,
            D,
        }
    }
}
